package com.erp.shop.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import com.ruoyi.common.core.web.oldDomain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 店铺cookie信息保存业务对象 erp_seller_store_cookie
 *
 * @author erp
 * @date 2023-12-12
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ErpSellerStoreCookieBo extends BaseEntity {

    /**
     * 主键
     */
//    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 店铺id
     */
    @NotNull(message = "店铺id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long storeId;

    /**
     * 店铺cn码
     */
    @NotBlank(message = "店铺cn码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String storeUserName;

    /**
     * cookie信息
     */
    @NotBlank(message = "cookie信息不能为空", groups = { AddGroup.class, EditGroup.class })
    private String cookie;

    /**
     * cookie状态
     */
//    @NotBlank(message = "cookie状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String cookieStatus;
    /**
     * ae店铺id
     */
    private Long channelId;

    /**
     * 失败信息
     */
//    @NotBlank(message = "失败信息不能为空", groups = { AddGroup.class, EditGroup.class })
    private String cookieErrorMsg;

    /**
     * 乐观锁
     */
//    @NotBlank(message = "乐观锁不能为空", groups = { AddGroup.class, EditGroup.class })
    private String revision;


}
